<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .box {
        width: 200px;
        height: 200px;
        background-color: red;
    }
</style>

<body>
    <div id="app">
        <div class="box" v-show="status"> </div>
        <button v-on:click="fn">显示</button>


    </div>
</body>
<script src="../../static/vue.js"></script>
<script>
    new Vue({
        el: "#app",
        data: {
            status: true
        },
        // methods  get post 
        methods: {
            fn: function () {

                console.log(this.status);
                this.status = !this.status
            }
        },
    })

</script>

</html>